package com.lrw.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "TBL_USER")
public class UserModel implements Serializable {
	private static final long serialVersionUID = 1L;
	/*
	 * 主键ID
	 */
	private int id;
	/*
	 * 用户姓名
	 */
	private String username;
	/*
	 * 用户邮箱
	 */
	private String email;
	/*
	 * 用户密码
	 */
	private String password;
	/*
	 * 手机号码
	 */
	private String modelphone;
	/*
	 * 性别
	 */
	private String sex;
	/*
	 * 年龄
	 */
	private Integer age;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "id")
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	@Column(name = "username")
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@Column(name = "email")
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "password")
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Column(name = "AGE")
	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	@Column(name = "MODELPHONE")
	public String getModelphone() {
		return modelphone;
	}

	public void setModelphone(String modelphone) {
		this.modelphone = modelphone;
	}

	@Column(name = "SEX")
	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}
}
